@import "../../../bootstrap/lib/css/mixins.less";

.x-modal-overlay {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgb(0, 0, 0);/*IE*/
	filter:alpha(opacity=40);/*IE*/
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 2500;
	visibility: hidden;
	opacity: 0;
	-webkit-transition-duration: 200ms;
	transition-duration: 200ms;
}

.x-modal-overlay.x-modal-overlay-visible {
	visibility: visible;
	opacity: 1;
}

.x-modal {
	  background-color: @modal-content-bg;
	  border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
	  border: 1px solid @modal-content-border-color;
	  border-radius: @border-radius-large;
	  .box-shadow(0 3px 9px rgba(0,0,0,.5));
	  background-clip: padding-box;

	width: 270px;
	position: fixed;
	z-index: 2501;
	left: 50%;
	margin-left: -135px;
	margin-top: 0;
	top: 50%;
	text-align: center;
	opacity: 0;
	-webkit-transform: translate3d(0, 0, 0) scale(1.185);
	-ms-transform: translate3d(0, 0, 0) scale(1.185);
	transform: translate3d(0, 0, 0) scale(1.185);
	-webkit-transition-property: -webkit-transform, opacity;
	-moz-transition-property: -moz-transform, opacity;
	-ms-transition-property: -ms-transform, opacity;
	-o-transition-property: -o-transform, opacity;
	transition-property: transform, opacity;
	display: none;
}

.x-modal.x-modal-in {
	opacity: 1;
	-webkit-transition-duration: 400ms;
	transition-duration: 400ms;
	-webkit-transform: none;
	-ms-transform: none;
	transform: none;
}

.x-modal-inner {
	padding: 15px;
	border-radius: @border-radius-large @border-radius-large 0 0;
	background-color: @modal-content-bg;
}

.x-modal-buttons {
	height: 44px;
	overflow: hidden;
	border-top: 1px solid #b5b5b5;
}

.x-modal-button {
	padding: 0 5px;
	height: 44px;
	font-size: @font-size-base;
	line-height: 44px;
	text-align: center;
	color: #007aff;
	background-color: @modal-content-bg;
	position: relative;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	cursor: pointer;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border-right: 1px solid #b5b5b5;
	display: none;
}

span[type='OKCancel'] .x-modal-button.OK,
span[type='Prompt'] .x-modal-button.OK,
span[type='YesNo'] .x-modal-button.Yes,
span[type='YesNoCancel'] .x-modal-button.Yes{
	border-radius: 0 0 0 @border-radius-large;
}

span[type='OK'] .x-modal-button.OK,	
span[type='OKCancel'] .x-modal-button.Cancel,
span[type='Prompt'] .x-modal-button.Cancel,
span[type='YesNoCancel'] .x-modal-button.Cancel,
span[type='YesNo'] .x-modal-button.No {
	border-right: none;
	border-radius: 0 0 @border-radius-large 0;
}

span[type='OK'] .x-modal-button.OK {
	border-radius: 0 0 @border-radius-large @border-radius-large;
}

.x-modal-button.x-modal-button-bold {
	font-weight: 500;
}

span[type='OK'] .x-modal-button.OK,
span[type='OKCancel'] .x-modal-button.OK,
span[type='Prompt'] .x-modal-button.OK{
	display: inline-block;
}


span[type='OKCancel'] .x-modal-button.Cancel,
span[type='Prompt'] .x-modal-button.Cancel,
span[type='YesNoCancel'] .x-modal-button.Cancel{
	display: inline-block;
}

span[type='YesNo'] .x-modal-button.Yes,
span[type='YesNoCancel'] .x-modal-button.Yes{
	display: inline-block;
}

span[type='YesNo'] .x-modal-button.No,
span[type='YesNoCancel'] .x-modal-button.No{
	display: inline-block;
}

span[type='OK'] .x-modal-button.OK{
	width: 100%;
}

span[type='OKCancel'] .x-modal-button.OK,
span[type='OKCancel'] .x-modal-button.Cancel,
span[type='Prompt'] .x-modal-button.OK,
span[type='Prompt'] .x-modal-button.Cancel,
span[type='YesNo'] .x-modal-button.Yes,
span[type='YesNo'] .x-modal-button.No{
	width: 45%;
}

span[type='YesNoCancel'] .x-modal-button.Yes,
span[type='YesNoCancel'] .x-modal-button.No,
span[type='YesNoCancel'] .x-modal-button.Cancel{
	width: 30%;
}

.x-modal-title {
	word-break: break-all; 
	word-wrap:break-word;
	font-weight: 700;
	font-size: @font-size-large;
	text-align: center;
}

.x-modal-title+.x-modal-text {
	margin-top: 5px;
	word-break: break-all; 
	word-wrap:break-word;
	text-align: left;
}

input.x-modal-prompt-input {
  display: block;
  width: 100%;
  height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
  padding: @padding-base-vertical @padding-base-horizontal;
  font-size: @font-size-base;
  line-height: @line-height-base;
  color: @input-color;
  background-color: @input-bg;
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
  border: 1px solid @input-border;
  border-radius: @input-border-radius;
  .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
  .transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s");

  // Customize the `:focus` state to imitate native WebKit styles.
  .form-control-focus();

  // Placeholder
  .placeholder();
  
  margin-top: 15px;
  display: none;
}

span[type='Prompt'] input.x-modal-prompt-input {
	display: block;
}